# 配置sonarqube数据库
mysql -P {{ mysql_port }} -u root -p'{{ rootpass }}' -e "CREATE USER '{{sonar_mysql_user}}'@'%' IDENTIFIED BY '{{sonar_mysql_pass}}';GRANT all privileges ON {{sonar_mysql_db}}.* TO '{{sonar_mysql_user}}'@'%' IDENTIFIED BY '{{sonar_mysql_pass}}';flush privileges;"
mysql -P {{ mysql_port }} -u root -p'{{ rootpass }}' -e "create database {{sonar_mysql_db}};"
